<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background-color: #ccc;
        }
        *{
            margin: 0;
            padding: 0;
        }
        img{
            border: 5px solid red;
            width: 100px;
            height: 100px;
            margin: 10px;
        }
        div{
            width: 500px;
            height: 500px;
            margin: auto;
            background-image: url(images/img.jpg);
            /* 不平铺 */
            background-repeat: no-repeat; 
        }
    </style>
</head>
<body>
    <h4 style="margin: 10px;">图像标签的使用:</h4>
    <img src="images/img.jpg" alt="刘德华" title="我是刘德华">
    <div></div>
</body>
</html>